package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardDeliveryRequest struct {
	/*
	   工单配送请求参数     */
	IdentifyTaskDeliveryRequest *domain.TmallServicecenterWorkcardDeliveryIdentifyTaskDeliveryRequest `json:"identify_task_delivery_request" required:"true" `
}

func (s *TmallServicecenterWorkcardDeliveryRequest) SetIdentifyTaskDeliveryRequest(v domain.TmallServicecenterWorkcardDeliveryIdentifyTaskDeliveryRequest) *TmallServicecenterWorkcardDeliveryRequest {
	s.IdentifyTaskDeliveryRequest = &v
	return s
}

func (req *TmallServicecenterWorkcardDeliveryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.IdentifyTaskDeliveryRequest != nil {
		paramMap["identify_task_delivery_request"] = util.ConvertStruct(*req.IdentifyTaskDeliveryRequest)
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardDeliveryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
